﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperExtensions.Mapper;

namespace ZL.CRM.CommonEntity.Common
{
    public class AccCard
    {

        /// <summary>
        ///  操作记录：凭证号
        /// </summary>
        public string Cardno { get; set; }

        /// <summary>
        ///  操作记录：凭证类型
        /// 此处不使用short原因为：需支持-1类型，即核心库链接信息检索值
        /// </summary>
        public int Ctype { get; set; }

    }
    public class AccCardMapper : ClassMapper<AccCard>
    {
        public AccCardMapper()
        {
            Table("#CardList");
            Map(f => f.Cardno).Column("Cardno");
            Map(f => f.Ctype).Column("Ctype");

        }

    }
}
